package com.lc.redis.redisTemplate;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;

import javax.annotation.Resource;

@SpringBootTest
public class ListType {

    @Resource
    private RedisTemplate redisTemplate;

    @Test
    public void testList(){
        redisTemplate.opsForList().leftPush("user:3",1);
        Object o = redisTemplate.opsForList().rightPop("user:3");
        System.out.println(o);
    }


}
